import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [{
		path: '/',
		name: 'Home',
		component: Home
	},
	{
		path: '/Discount',
		name: 'Discount',
		component: () => import('../views/Discount.vue')
	},
	{
		path: '/fish',
		name: 'fish',
		component: () => import('../views/fish.vue')
	} ,
	{
		path: '/slot',
		name: 'slot',
		component: () => import('../views/slot.vue')
	} ,
	{
		path: '/live',
		name: 'live',
		component: () => import('../views/live.vue')
	} ,
	{
		path: '/Lottery',
		name: 'Lottery',
		component: () => import('../views/Lottery.vue')
	},
	{
		path: '/sports',
		name: 'sports',
		component: () => import('../views/sports.vue')
	},
	{
		path: '/Help',
		name: 'Help',
		component: () => import('../views/Help.vue')
	},
	// 个人中心
	{
		path: '/user/message',
		name: 'message',
		component: () => import('../views/user/message.vue')
	},
	{
		path: '/user/messageContent',
		name: 'messageContent',
		component: () => import('../views/user/messageContent.vue')
	},
	{
		path: '/user/betHistory',
		name: 'betHistory',
		component: () => import('../views/user/betHistory.vue')
	},
	{
		path: '/user/capitalDetail',
		name: 'capitalDetail',
		component: () => import('../views/user/capitalDetail.vue')
	},
	{
		path: '/user/information',
		name: 'information',
		component: () => import('../views/user/information.vue')
	},
	{
		path: '/user/lotteryResult',
		name: 'lotteryResult',
		component: () => import('../views/user/lotteryResult.vue')
	},
	{
		path: '/user/myPurse',
		name: 'myPurse',
		component: () => import('../views/user/myPurse.vue')
	},
	{
		path: '/user/transactionRecord',
		name: 'transactionRecord',
		component: () => import('../views/user/transactionRecord.vue')
	},
	{
		path: '/user/addIn',
		name: 'addIn',
		component: () => import('../views/user/addIn.vue')
	},
	
]

const router = new VueRouter({
	routes
})

export default router
